package com.wxcms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wxcms.domain.AccountOrg;
import com.wxcms.mapper.AccountOrgDao;
import com.wxcms.service.AccountOrgService;


@Service
public class AccountOrgServiceImpl implements AccountOrgService{

	@Autowired
	private AccountOrgDao entityDao;

	public AccountOrg getById(String id){
		return entityDao.getById(id);
	}
	
	public AccountOrg getByOpenid(String openid){
		return entityDao.getByOpenid(openid);
	}

	public List<AccountOrg> listForPage(AccountOrg searchEntity){
		return entityDao.listForPage(searchEntity);
	}

	public void add(AccountOrg entity){
		entityDao.add(entity);
	}

	public void update(AccountOrg entity){
		entityDao.update(entity);
	}

	public void delete(AccountOrg entity){
		entityDao.delete(entity);
	}
	
	public List<AccountOrg> list(AccountOrg searchEntity){
		return entityDao.list(searchEntity);
	}

	public AccountOrg getByOpenidAndOrgid(AccountOrg entity){
		return entityDao.getByOpenidAndOrgid(entity);
	}

}